﻿<Window x:Class="MyVideoViewerConfiguration.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Icon="Icon.ico"
    Title="My Video Viewer Configuration" Height="300" Width="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>        
        <Grid x:Name="step1Grid" Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            
            <TextBlock>
                Please choose the source for My Video Viewer to use to get the movie data:
            </TextBlock>
            
            <RadioButton x:Name="rad1" Grid.Row="1" Content="My Movies" Margin="5" HorizontalAlignment="Left"></RadioButton>

            <Grid x:Name="myMoviesGrid" Visibility="Collapsed" Grid.Row="2" Margin="20,10,0,0" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="3">
                    Please enter the name of the computer where the My Movies server is installed:
                </TextBlock>
                <TextBox x:Name="myMoviesTextBox" Grid.Row="1" Text="{Binding MyMoviesServerName}" HorizontalAlignment="Left" Margin="3" Width="150" />
                <TextBlock  Grid.Row="2" TextWrapping="Wrap" Margin="3">
                    (Please make sure My Movies is properly set up to access from another computer if the server is not
                    located on this computer.  A good way to determine if it is setup coorectly is to install the My Movies
                    client and try to connect to the server.)
                </TextBlock>
            </Grid>

            <RadioButton x:Name="rad2" Grid.Row="5" Content="EAX Movie Catalog File" Grid.Column="0" Margin="5" HorizontalAlignment="Left"></RadioButton>
            
            <Grid x:Name="eaxFileGrid" Visibility="Collapsed" Grid.Row="6" Margin="20,10,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock  TextWrapping="Wrap" Margin="3" Grid.ColumnSpan="2">
                    Please select the EAX Movie Catalog file to use:
                </TextBlock>
                <TextBox x:Name="eaxTextBox" Grid.Column="0" Grid.Row="1" Text="{Binding EaxMovieCatalogFile}" Margin="3" />
                <Button Grid.Column="2" Grid.Row="1" x:Name="eaxBrowseButton" Content="Browse" Margin="3" />
                
                <TextBlock Grid.Row="2" Grid.ColumnSpan="2" Text="Please enter the name of the computer where the My Video Viewer server was setup." />
                <TextBox Text="{Binding VideoViewerServerName}" Grid.ColumnSpan="2" Grid.Row="3" Width="150" HorizontalAlignment="Left" />
            </Grid>

            <RadioButton x:Name="rad3" Grid.Row="3" Content="My Movies XML File" Grid.Column="0" Margin="5" HorizontalAlignment="Left"></RadioButton>

            <Grid x:Name="myMoviesFileGrid" Visibility="Collapsed" Grid.Row="4" Margin="20,10,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock  TextWrapping="Wrap" Margin="3" Grid.ColumnSpan="2">
                    Please select the My Movies XML file to use:
                </TextBlock>
                <TextBox x:Name="myMoviesXmlTextBlock" Grid.Column="0" Grid.Row="1" Text="{Binding MyMoviesXmlFile}" Margin="3" />
                <Button Grid.Column="2" Grid.Row="1" x:Name="myMoviesXmlBrowseButton" Content="Browse" Margin="3" />

                <TextBlock Grid.Row="2" Grid.ColumnSpan="2" Text="Please enter the name of the computer where the My Movies server is installed." />
                <TextBox Text="{Binding MyMoviesServerName}" Grid.ColumnSpan="2" Grid.Row="3" Width="150" HorizontalAlignment="Left" />
            </Grid>
        </Grid>
        <Grid x:Name="step3Grid" Margin="10" Visibility="Collapsed">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <Label Grid.Column="0" Grid.Row="0" Content="Folder To Download Trailers To:" />



                <TextBox Grid.Column="1" Grid.Row="0" Width="470" Text="{Binding Path=TrailersDownloadFolder, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="1" Content="Download Not Yet Rated" IsChecked="{Binding Path=DownloadNotYetRated, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="2" Content="Download G" IsChecked="{Binding Path=DownloadG, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="3" Content="Download PG" IsChecked="{Binding Path=DownloadPG, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="4" Content="Download PG-13" IsChecked="{Binding Path=DownloadPG13, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="5" Content="Download R" IsChecked="{Binding Path=DownloadR, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="1" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="1" Content="Download HD" IsChecked="{Binding Path=DownloadHD, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="1" Grid.ColumnSpan="2" Margin="40,3,3,3" Grid.Row="2" Content="Try to download 1080p" IsChecked="{Binding Path=Try1080, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />

                <Button Grid.Column="2" x:Name="browseButton" Content="Browse" Margin="3" />
            </Grid>
        </Grid>
        
        <Grid Grid.Row="1">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button x:Name="nextButton" Content="Next" Margin="5" Visibility="Collapsed" />
                <Button x:Name="finishButton" Content="Save" Margin="5" Visibility="Collapsed" />
                <Button x:Name="cancelButton" Content="Cancel" Margin="5" />
            </StackPanel>
        </Grid>
    </Grid>
</Window>
